home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / QuickDraw™ GX Interfaces & Libs / CIncludes / layout routines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  9.6 KB  |  134 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        layout routines.h
  3.  
  4.     Copyright:    © 1984-1995 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef layoutRoutinesIncludes
  13. #define layoutRoutinesIncludes
  14.  
  15. #include "graphics types.h"
  16. /*    #include "math types.h"                                        */
  17. /*        #include <Types.h>                                        */
  18. /*            #include <ConditionalMacros.h>                        */
  19. /*            #include <MixedMode.h>                                */
  20. /*                #include <Traps.h>                                */
  21. #include "layout types.h"
  22. #include "graphics linkage.h"
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. extern gxShape GXNewLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  28.  THREEWORDINLINE(0x303C, 0x0, 0xA832);
  29. extern long GXGetLayout(gxShape layout, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[], gxLayoutOptions *layoutOptions, gxPoint *position)
  30.  THREEWORDINLINE(0x303C, 0x1, 0xA832);
  31. extern void GXSetLayout(gxShape layout, long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  32.  THREEWORDINLINE(0x303C, 0x2, 0xA832);
  33. extern void GXDrawLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  34.  THREEWORDINLINE(0x303C, 0x3, 0xA832);
  35. extern void GXSetLayoutParts(gxShape layout, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[])
  36.  THREEWORDINLINE(0x303C, 0x4, 0xA832);
  37. extern void GXSetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape insert)
  38.  THREEWORDINLINE(0x303C, 0x5, 0xA832);
  39. extern long GXGetLayoutParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[])
  40.  THREEWORDINLINE(0x303C, 0x6, 0xA832);
  41. extern gxShape GXGetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape dest)
  42.  THREEWORDINLINE(0x303C, 0x7, 0xA832);
  43. extern long GXGetLayoutGlyphs(gxShape layout, gxGlyphcode *glyphs, gxPoint positions[], long advance[], gxPoint tangents[], long *runCount, short styleRuns[], gxStyle glyphStyles[])
  44.  THREEWORDINLINE(0x303C, 0x8, 0xA832);
  45. extern gxByteOffset GXHitTestLayout(gxShape layout, const gxPoint *hitDown, gxHighlightType highlightType, gxLayoutHitInfo *hitInfo, gxShape hitTrackingArea)
  46.  THREEWORDINLINE(0x303C, 0x9, 0xA832);
  47. extern gxShape GXGetLayoutHighlight(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxHighlightType highlightType, gxShape highlight)
  48.  THREEWORDINLINE(0x303C, 0xa, 0xA832);
  49. extern gxShape GXGetLayoutVisualHighlight(gxShape layout, gxByteOffset startOffset, long startLeadingEdge, gxByteOffset endOffset, long endLeadingEdge, gxHighlightType highlightType, gxShape highlight)
  50.  THREEWORDINLINE(0x303C, 0xb, 0xA832);
  51. extern gxShape GXGetLayoutCaret(gxShape layout, gxByteOffset offset, gxHighlightType highlightType, gxCaretType caretType, gxShape caret)
  52.  THREEWORDINLINE(0x303C, 0xc, 0xA832);
  53. extern gxByteOffset GXGetLayoutBreakOffset(gxShape layout, gxByteOffset startOffset, Fixed lineWidth, long hyphenationCount, const gxByteOffset hyphenationPoints[], boolean *startIsStaked, gxByteOffset *priorStake, gxByteOffset *nextStake)
  54.  THREEWORDINLINE(0x303C, 0xd, 0xA832);
  55. extern Fixed GXGetLayoutRangeWidth(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape supplementaryText)
  56.  THREEWORDINLINE(0x303C, 0xe, 0xA832);
  57. extern gxShape GXNewLayoutFromRange(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, const gxLayoutOptions *layoutOptions, gxShape supplementaryText)
  58.  THREEWORDINLINE(0x303C, 0xf, 0xA832);
  59. extern gxShape GXGetCaretAngleArea(gxShape layout, const gxPoint *hitPoint, gxHighlightType highlightType, gxShape caretArea, short *returnedRise, short *returnedRun)
  60.  THREEWORDINLINE(0x303C, 0x10, 0xA832);
  61. extern void GXGetStyleBaselineDeltas(gxStyle baseStyle, gxBaselineType baseType, gxBaselineDeltas returnedDeltas)
  62.  THREEWORDINLINE(0x303C, 0x11, 0xA832);
  63. extern gxByteOffset GXGetRightVisualOffset(gxShape layout, gxByteOffset currentOffset)
  64.  THREEWORDINLINE(0x303C, 0x12, 0xA832);
  65. extern gxByteOffset GXGetLeftVisualOffset(gxShape layout, gxByteOffset currentOffset)
  66.  THREEWORDINLINE(0x303C, 0x13, 0xA832);
  67. extern void GXGetCompoundCharacterLimits(gxShape layout, gxByteOffset trial, gxByteOffset *minOffset, gxByteOffset *maxOffset, boolean *onBoundary)
  68.  THREEWORDINLINE(0x303C, 0x14, 0xA832);
  69. extern void GXGetOffsetGlyphs(gxShape layout, gxByteOffset trial, long leadingEdge, gxLayoutOffsetState *offsetState, unsigned short *firstGlyph, unsigned short *secondGlyph)
  70.  THREEWORDINLINE(0x303C, 0x15, 0xA832);
  71. extern void GXGetGlyphOffset(gxShape layout, long trial, long onLeftTop, gxByteOffset *offset, boolean *leadingEdge, boolean *wasRealCharacter)
  72.  THREEWORDINLINE(0x303C, 0x16, 0xA832);
  73. extern void GXGetLayoutSpan(gxShape layout, Fixed *lineAscent, Fixed *lineDescent)
  74.  THREEWORDINLINE(0x303C, 0x17, 0xA832);
  75. extern void GXSetLayoutSpan(gxShape layout, Fixed lineAscent, Fixed lineDescent)
  76.  THREEWORDINLINE(0x303C, 0x18, 0xA832);
  77. extern Fixed GXGetLayoutJustificationGap(gxShape layout)
  78.  THREEWORDINLINE(0x303C, 0x279, 0xA832);
  79. extern void GXGetLayoutJustificationFactors(gxShape layout, Fixed constrainedFactors[], Fixed unconstrainedFactors[]);
  80. extern void GXSetStyleRunControls(gxStyle target, const gxRunControls *runControls)
  81.  THREEWORDINLINE(0x303C, 0x19, 0xA832);
  82. extern void GXSetStyleRunPriorityJustOverride(gxStyle target, const gxPriorityJustificationOverride *priorityJustificationOverride)
  83.  THREEWORDINLINE(0x303C, 0x1a, 0xA832);
  84. extern void GXSetStyleRunGlyphJustOverrides(gxStyle target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
  85.  THREEWORDINLINE(0x303C, 0x1b, 0xA832);
  86. extern void GXSetStyleRunGlyphSubstitutions(gxStyle target, long count, const gxGlyphSubstitution glyphSubstitutions[])
  87.  THREEWORDINLINE(0x303C, 0x1c, 0xA832);
  88. extern void GXSetStyleRunFeatures(gxStyle target, long count, const gxRunFeature runFeatures[])
  89.  THREEWORDINLINE(0x303C, 0x1d, 0xA832);
  90. extern void GXSetStyleRunKerningAdjustments(gxStyle target, long count, const gxKerningAdjustment kerningAdjustments[])
  91.  THREEWORDINLINE(0x303C, 0x1e, 0xA832);
  92. extern void GXSetShapeRunControls(gxShape target, const gxRunControls *runControls)
  93.  THREEWORDINLINE(0x303C, 0x1f, 0xA832);
  94. extern void GXSetShapeRunPriorityJustOverride(gxShape target, const gxPriorityJustificationOverride *priorityJustificationOverride)
  95.  THREEWORDINLINE(0x303C, 0x20, 0xA832);
  96. extern void GXSetShapeRunGlyphJustOverrides(gxShape target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
  97.  THREEWORDINLINE(0x303C, 0x21, 0xA832);
  98. extern void GXSetShapeRunGlyphSubstitutions(gxShape target, long count, const gxGlyphSubstitution glyphSubstitutions[])
  99.  THREEWORDINLINE(0x303C, 0x22, 0xA832);
  100. extern void GXSetShapeRunFeatures(gxShape target, long count, const gxRunFeature runFeatures[])
  101.  THREEWORDINLINE(0x303C, 0x23, 0xA832);
  102. extern void GXSetShapeRunKerningAdjustments(gxShape target, long count, const gxKerningAdjustment kerningAdjustments[])
  103.  THREEWORDINLINE(0x303C, 0x24, 0xA832);
  104. extern long GXGetStyleRunControls(gxStyle source, gxRunControls *runControls)
  105.  THREEWORDINLINE(0x303C, 0x25, 0xA832);
  106. extern long GXGetStyleRunPriorityJustOverride(gxStyle source, gxPriorityJustificationOverride *priorityJustificationOverride)
  107.  THREEWORDINLINE(0x303C, 0x26, 0xA832);
  108. extern long GXGetStyleRunGlyphJustOverrides(gxStyle source, gxGlyphJustificationOverride glyphJustificationOverrides[])
  109.  THREEWORDINLINE(0x303C, 0x27, 0xA832);
  110. extern long GXGetStyleRunGlyphSubstitutions(gxStyle source, gxGlyphSubstitution glyphSubstitutions[])
  111.  THREEWORDINLINE(0x303C, 0x28, 0xA832);
  112. extern long GXGetStyleRunFeatures(gxStyle source, gxRunFeature runFeatures[])
  113.  THREEWORDINLINE(0x303C, 0x29, 0xA832);
  114. extern long GXGetStyleRunKerningAdjustments(gxStyle source, gxKerningAdjustment kerningAdjustments[])
  115.  THREEWORDINLINE(0x303C, 0x2a, 0xA832);
  116. extern long GXGetShapeRunControls(gxShape source, gxRunControls *runControls)
  117.  THREEWORDINLINE(0x303C, 0x2b, 0xA832);
  118. extern long GXGetShapeRunPriorityJustOverride(gxShape source, gxPriorityJustificationOverride *priorityJustificationOverride)
  119.  THREEWORDINLINE(0x303C, 0x2c, 0xA832);
  120. extern long GXGetShapeRunGlyphJustOverrides(gxShape source, gxGlyphJustificationOverride glyphJustificationOverrides[])
  121.  THREEWORDINLINE(0x303C, 0x2d, 0xA832);
  122. extern long GXGetShapeRunGlyphSubstitutions(gxShape source, gxGlyphSubstitution glyphSubstitutions[])
  123.  THREEWORDINLINE(0x303C, 0x2e, 0xA832);
  124. extern long GXGetShapeRunFeatures(gxShape source, gxRunFeature runFeatures[])
  125.  THREEWORDINLINE(0x303C, 0x2f, 0xA832);
  126. extern long GXGetShapeRunKerningAdjustments(gxShape source, gxKerningAdjustment kerningAdjustments[])
  127.  THREEWORDINLINE(0x303C, 0x30, 0xA832);
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131.  
  132. #endif
  133.  
  134.